// 过滤器
import moment from 'moment'
const dateFormat = (dataStr) => {
    return moment(dataStr).format("YYYY-MM-DD HH:mm:ss")
}
const gender = (sex) => {
    let str = ''
    if(sex == -1) str = '未知'
    if(sex == 0) str = '女'
    if(sex == 1) str = '男'
    return str
}
const round = (item) => {
 if(item < 10) {
     return '0' + item
 }
 return item
}

export default {
    round,
    dateFormat,
    gender
}
